#ifndef _FILTER_COUNTER_H_
#define _FILTER_COUNTER_H_

#include "stdio.h"
/*
	1.存储区域为EEPROM
	2.（02）为扩展地址
	3.EEPROM共有 12 个扇区 (sector) ，每个 sector为 512 bytes:
	4.最后一个扇区为0x1600-0x17FF
*/
#define filterLifeMax  262800	//4380 hours  262800min
#define intervalWriteTime 30		//12 hours  720min   360
#define WriteAddress   0x16FF
#define WriteSector    0x1600
/**************适配器状态**************/
typedef enum
{
	NONE=0,
	Boot,
	Shutdown,
	Reset,
}FILTER_INPUT;

typedef enum
{
	Recover = 0,
	Alarm,
}FILTER_OUTPUT;

extern volatile FILTER_INPUT filter_i_evt ;
extern volatile FILTER_OUTPUT filter_o_evt;
void filter_speed_up_init(void);
void filter_state_set(FILTER_INPUT value);
/******************end******************/
#endif

